package com.wiz.util;

import java.io.File;
import java.util.Properties;

import com.wiz.common.Constant;

/**  
 * @Title: AddressUtil.java
 * @Package com.abacus.gspshow.basedata
 * @Description: TODO(设置默认地址)
 * @author xxy
 * @date 2015-3-30 上午10:13:21
 * @version V1.0  
 */
public class AddressUtil {
	
	public static String defultAddress(){
		StringBuffer address = new StringBuffer();
		Properties props=System.getProperties(); //系统属性
		String osName = props.getProperty("os.name").toLowerCase();
		if(osName.indexOf("windows")>=0){
//			address.append("d:");
			return Constant.WIN_DIR;
		}else if(osName.indexOf("linux")>=0){
//			address.append(File.separatorChar);
//			address.append("var");
			return Constant.UNIX_DIR;
		}
//		address.append(File.separatorChar);
//		address.append("GSP");
//		address.append(File.separatorChar);
//		address.append("imager");
//		return address.toString();
		return null;
	}
}
